
		<div class="m_right">
            
            <div class="mem_tit" style="color:#ff4e00;font-size: 25px;;">我的订单</div>
            <div style="padding: 0px;width: 868px;height: 40px;margin-bottom: 10px;">
              <div style="width: 200px;height: 38px;background-color: pink;border-radius: 5px;float: left;border:1px solid #666;text-align: center;line-height: 38px;font-size: 16px">全部订单</div>
              <div style="width: 200px;height: 38px;background-color: gray;border-radius: 5px;float: left;margin-left: 20px;border:1px solid #666;text-align: center;line-height: 38px;font-size: 16px">待付款</div>
              <div style="width: 200px;height: 38px;background-color: gray;border-radius: 5px;float: left;margin-left: 20px;border:1px solid #666;text-align: center;line-height: 38px;font-size: 16px">已付款</div>
              <div style="width: 200px;height: 38px;background-color: pink;border-radius: 5px;float: left;margin-left: 20px;border:1px solid #666;text-align: center;line-height: 38px;font-size: 16px">待收货</div>
              <div style="clear: both;"></div>
            </div>
            <foreach name="order" item="vo">
            <div style="padding: 0px;width: 930px;height: 40px;border:1px solid #EEEEEE;background-color: #EEEEEE">
              <div style="float: left;width: 20%;line-height: 40px;font-size: 18px" >订单号：<span style="color: #ff4e00;font-weight:bold;font-size: 14px;text-align: left;" class="orderid">{$vo['ordercode']}</span></div>
              <div style="float: left;width: 20%;line-height: 40px;font-size: 18px">总金额：<span width="15%" style="color:#ff4e00;font-size: 14px;font-weight: bold;text-align: left;">{$vo['totalpay']}&nbsp;元</span></div>
              <div style="float: left;width: 20%;line-height: 40px;font-size: 18px" >状态：<span style="font-size: 14px;font-weight: bold;text-align: left;line-height: 40px;color:#ff4e00" class="status">
              <if condition="$vo['status'] eq 0">未付款
              <elseif condition="$vo['status'] eq 4"/>订单已取消
              <elseif condition="$vo['status'] eq 1"/>已付款
              <else />
              </if>
              </span></div>
              <if condition="$vo['status'] eq 4"><a href="{$deleterorder}?deletercode={$vo['ordercode']}"><span style="font-size: 16px;font-weight: bold;text-align: left;line-height: 40px;color:red">删除该订单</span></a>
              <elseif  condition="$vo['status'] eq 1"/><a href=""><span style="font-size: 16px;font-weight: bold;text-align: left;line-height: 40px;color:green">查看物流</span></a>
             
              <else /><div style="float: left;width: 20%;line-height: 40px;font-size: 16px"><a onclick="return del(this);">取消该订单</a></div>
              <div style="float: left;width: 20%;line-height: 40px;font-size: 16px"><a href="{$finish}?orderid={$vo['id']}">立即付款</a></div>
               </if>
            </div>
            <!-- <div style="padding: 0px;width: 930px;height: 40px;border:1px solid #EEEEEE"></div> -->
            <table border="0" class="order_tab" style="width:930px; text-align:center; margin-bottom:30px;background-color: ;" cellspacing="0" cellpadding="0">
              
              <foreach name="vo['goods']" item="v">
             <tr>
              <td width="20%"><img src="__PUBLIC__/csf/upload/{$v['photo']}" width="50" height="50" /></td>
              <td width="20%" style="text-align: left;margin:0px;padding: 0px" ><textarea cols="20" rows="3" style="overflow: hidden;outline: none;background-color: ">商品名称：{$v['goodsname']}</textarea></td>
              <!-- <td></td> -->
              <td width="20%">数量：{$v['buynum']}&nbsp;</td>
              <td width="20%">单价：&nbsp;{$v['price']}</td>
              <td width="20%">小计：{$v['totalpay']}</td>
              <!-- <td>0</td>
              <td>0</td> -->
            </tr>
            </foreach>
            </table>
          </foreach>
            <!--**********************取消订单确认事件***************************************-->
                 <script type="text/javascript">
                function del(obj){

                  if(confirm('确认取消该订单吗？')){
                      var box = jq(obj).parent().parent();
                      // console.log (box)
                       jq.ajax({
                            type:'post',
                            url:"{$delorder}",
                            data:{ordercode:jq(box).find('.orderid').text()},
                            dataType:'json',
                            success:function(data){
                                if(data.code=='666'){
                                  jq(box).find('.status').text('订单已取消');
                                }else if(data.code=='000'){
                                    alert(data.msg);
                                }
                            }
                        });
                        return false;
                  }else{
                    return false;
                  }
                }
            </script>

            <!--************************************************************************-->
             
       <!--*********************************************************************-->
       
        </div>
    <!-- </div> -->
	<!--End 用户中心 End--> 
    <!--Begin Footer Begin 00.7-->
   